import javax.swing.*;
import java.awt.*;
import java.util.*;
class P1 extends JPanel{
	JTextArea t2 = new JTextArea(5,40);
	public P1(){
		this.add(t2);
		t2.setText("\n\n\t   欢迎使用科学计算器");
		//t2.setFont(new Font("黑体",Font.PLAIN,20));
	}
	public void setText(String str){
		t2.setText("");
		t2.setText(str);
	}
}